package com.ray.common.constants;

/**
 * 常量
 * 
 * @author wangxin
 * @Date 2015-03-04
 */
public class Constants {

    public static final int HASH_INTERATIONS = 1024;
    public static final int SALT_SIZE = 8;

    public static int defaultPageSize = 10;

    /******************** xss攻击防注入参数 begin ************************/
    // 出错跳转的目的地
    public final static String XSS_ERROR_PATH = "/WEB-INF/pages/error.jsp";
    // 不进行拦截的urlnm
    public final static String XSS_EXCLUDE_PATHS = "";
    // 需要拦截的JS字符关键字
    public final static String XSS_SAFELESS =
        "<script, </script, <iframe, </iframe, <frame, </frame, set-cookie, %3cscript, %3c/script, %3ciframe, %3c/iframe, %3cframe, %3c/frame, src=\"javascript:, <body, </body, %3cbody, %3c/body, <, >, </, />, %3c, %3e, %3c/, /%3e";
    /******************** xss攻击防注入参数 end ************************/

    /** 已删除 1 */
    public final static int IS_DEL_Y = 1;

    /** 未删除 0 */
    public final static int IS_DEL_N = 0;

}
